<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ckeditor5-classic</title>
    <!-- 引入文件 -->
    <script src="./js/ckeditor5/ckeditor5-build-classic/ckeditor.js"></script>
</head>
<body>
    <div style="height: 400px;width: 600px;">
        <div id="editor"></div>
    </div>

    <script>
        //格式化editor
        ClassicEditor
            .create(document.querySelector('#editor'))
            .catch(error =>{
                console.error(error);
            });
    </script>
    
</body>
</html>